#ifndef __MY_GLBVAR_H
#define __MY_GLBVAR_H

//----------------------------------Include------------------------------------
#include  "my_type_rdf.h"
//-----------------------------------------------------------------------------

//-----------------------------------Macro-------------------------------------
#define countof(Obj)  (sizeof(Obj)/sizeof(Obj[0]))
#define COL_SIZE      6
#define ROW_SIZE      6
#define PAD           4
//-----------------------------------------------------------------------------
#define BSWAP_16(x) \
    (uint16_t)((((uint16_t)(x) & 0x00ff) << 8) | \
               (((uint16_t)(x) & 0xff00) >> 8) \
              )
#define BSWAP_32(x) \
    (uint32_t)((((uint32_t)(x) & 0xff000000) >> 24) | \
               (((uint32_t)(x) & 0x00ff0000) >> 8)  | \
               (((uint32_t)(x) & 0x0000ff00) << 8)  | \
               (((uint32_t)(x) & 0x000000ff) << 24)   \
              )
//-----------------------------------------------------------------------------

//-----------------------------------Types-------------------------------------
//-----------------------------------------------------------------------------

//---------------------------------Share Var-----------------------------------
#ifdef  MYAPP_GLOBALS
#else
extern  u64           igu64_tick_ms;

extern  u16           gu16_data[];
extern  u16           gu16_pre[];

extern  u8            gu8_addr;
extern  u8            gu8_dbg;
#endif
//-----------------------------------------------------------------------------

#endif
//------------------------------------EOF--------------------------------------

